//
//  AlertsModel.m
//
//  Created by Felipe Navarro V. on 27-10-09.
//  Copyright deis 2009. All rights reserved.
//


#import "AlertsModel.h"
#import "AlertsResultsModel.h"

AlertsResponseFormat CurrentAlertsResponseFormat = AlertsResponseFormatDefault;

id<AlertsModel> CreateAlertsModel(NSString* kind, NSString* method, int limit,  AlertsResponseFormat responseFormat)
{
    id<AlertsModel> model = nil;
	model = [[[AlertsResultsModel alloc] initWithResponseFormat:responseFormat kind:kind method:method limit:limit] autorelease];
    return model;
}

id<AlertsModel> CreateAlertsModelWithCurrentSettings(NSString* kind, NSString* method, int limit)
{
    return CreateAlertsModel(kind, method, limit, CurrentAlertsResponseFormat);
}